package com.ruoyi.btlfbreed.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 肉鸡对象 tb_chickens
 * 
 * @author cpdeman
 * @date 2024-05-05
 */
public class TbChickens extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long chickenId;

    /** 鸡苗孵化ID */
    @Excel(name = "鸡苗孵化ID")
    private Long parentId;

    /** 所属鸡舍 */

    private Long houseId;
    @Excel(name = "所属鸡舍")
    private String houseName;
    /** 是否已售出（N代表否，Y代表是） */
    @Excel(name = "是否已售出", readConverterExp = "N=代表否，Y代表是")
    private String isSold;
    public String getHouseName()
    {
        return houseName;
    }

    public void setHouseName(String houseName)
    {
        this.houseName = houseName;
    }


    private Long userId;

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    @Excel(name = "管理员")
    private  String userName;

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    /** 孵化批次编号 */
    @Excel(name = "孵化批次编号")
    private String hatchBatchNo;

    /** 肉鸡编号 */
    @Excel(name = "肉鸡编号")
    private String chickenNo;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 当前体重（单位：千克） */
    @Excel(name = "当前体重", readConverterExp = "单=位：千克")
    private double weight;

    /** 出栏日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出栏日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date jhclDate;

    /** 健康状况 */
    @Excel(name = "健康状况")
    private String healthStatus;

    /** 删除标志 */
    private String delFlag;

    public void setChickenId(Long chickenId) 
    {
        this.chickenId = chickenId;
    }

    public Long getChickenId() 
    {
        return chickenId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setHatchBatchNo(String hatchBatchNo)
    {
        this.hatchBatchNo = hatchBatchNo;
    }

    public String getHatchBatchNo()
    {
        return hatchBatchNo;
    }
    public void setChickenNo(String chickenNo) 
    {
        this.chickenNo = chickenNo;
    }

    public String getChickenNo() 
    {
        return chickenNo;
    }
    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }
    public void setWeight(double weight)
    {
        this.weight = weight;
    }

    public double getWeight()
    {
        return weight;
    }
    public void setJhclDate(Date jhclDate) 
    {
        this.jhclDate = jhclDate;
    }

    public Date getJhclDate() 
    {
        return jhclDate;
    }
    public void setHealthStatus(String healthStatus) 
    {
        this.healthStatus = healthStatus;
    }

    public String getHealthStatus() 
    {
        return healthStatus;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getIsSold()
    {
        return isSold;
    }

    public void setIsSold(String isSold)
    {
        this.isSold = isSold;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chickenId", getChickenId())
            .append("parentId", getParentId())
            .append("houseId", getHouseId())
            .append("hatchBatchNo", getHatchBatchNo())
            .append("chickenNo", getChickenNo())
            .append("birthDate", getBirthDate())
            .append("weight", getWeight())
            .append("jhclDate", getJhclDate())
            .append("isSold", getIsSold())
            .append("healthStatus", getHealthStatus())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
